package palette;

import javax.swing.JInternalFrame;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import java.awt.Dimension;

public class BuilderWindow extends JInternalFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 279530650225523245L;
	
	JPanel myPanel = new JPanel();
	public BuilderWindow(String name){
		super(name,true,true,true,true);
		//this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
		//this.addInternalFrameListener(new IntCloseListener());
		JScrollPane scroll = new JScrollPane(myPanel);
		scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
		scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		add(scroll);
		pack();
		setSize(new Dimension(500,400));
		setVisible(true);
	}
}
